﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

using PowerCreator.LMS.Common.Script;
using PowerCreator.LMS.Task.Entity;
using PowerCreator.LMS.Web.Task;
using System.Collections.Generic;

public partial class sysadmin_TaskManager_AddTaskGroup : System.Web.UI.Page
{
    TaskGroupManag objTaskGroupManag = new TaskGroupManag();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {

        }
    }

    protected void btnSave_Click(object sender, EventArgs e)
    {

        string TaskGpName = this.txtTaskGpName.Text;

        string TaskGpRemark = this.txtTaskGpRemark.Text;

        DateTime TaskGpCreateTime = DateTime.Now;
        int FKTaskGpCreateID = 10001;// GetLoginEntity.UserID;

        TaskGroup model = new TaskGroup();

        model.TaskGpName = TaskGpName;
        model.TaskGpRemark = TaskGpRemark;
        model.TaskGpCreateTime = TaskGpCreateTime;
        model.FKTaskGpCreateID = FKTaskGpCreateID;
     

        bool result;
        result = objTaskGroupManag.AddNew(model);
        if (result)
        {
            Script.RedirectURL("TaskGroupManager.aspx");
        }
    }
    protected void btnReset_Click(object sender, EventArgs e)
    {
        Script.RedirectURL("TaskGroupManager.aspx");
    }
}
